import { axios } from '@/utils/request'

/**
 * 查询支付宝WEB支付配置
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigPage (parameter) {
  return axios({
    url: '/appPayAliWebConfig/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 支付宝WEB支付配置列表
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigList (parameter) {
  return axios({
    url: '/appPayAliWebConfig/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加支付宝WEB支付配置
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigAdd (parameter) {
  return axios({
    url: '/appPayAliWebConfig/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑支付宝WEB支付配置
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigEdit (parameter) {
  return axios({
    url: '/appPayAliWebConfig/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除支付宝WEB支付配置
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigDelete (parameter) {
  return axios({
    url: '/appPayAliWebConfig/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出支付宝WEB支付配置
 *
 * @author 郑雄伟
 * @date 2023-12-28 16:28:38
 */
export function appPayAliWebConfigExport (parameter) {
  return axios({
    url: '/appPayAliWebConfig/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
